package com.rm.zeyou.controller;

import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.service.MerchantService;
import com.rm.zeyou.vo.request.SelectMerchantVo;
import com.rm.zeyou.vo.response.SelectMerchantResponseVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 商家表 前端控制器
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:08
 */
@Api(tags = "商家相关")
@RestController
@RequestMapping("/api/merchant")
public class MerchantController {
    @Resource
    private MerchantService merchantService;

    @ApiOperation(value = "查询商家信息")
    @PostMapping("selectMerchant")
    public ApiRestResponse<SelectMerchantResponseVo> selectMerchant(@RequestBody SelectMerchantVo requestVo) {
        return merchantService.selectMerchant(requestVo);
    }

}
